<template>
  <div>
    <hm-header>我的收藏</hm-header>
    <div class="list">
      <hm-post v-for="post in list" :key="post.id" :post="post"></hm-post>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      list: []
    };
  },
  async created() {
    const res = await this.$axios.get("/user_star");
    const { statusCode, data } = res.data;
    if (statusCode === 200) {
      this.list = data;
      console.log(this.list);
    }
  }
};
</script>

<style></style>
